﻿using QMERP.Infrastructure.Tools;

namespace QMERP.Domain.Dtos
{
    public class AttachmentResponse
    {
        public long Id { get; set; }
        public long? OwnerId { get; set; }
        public string OwnerType { get; set; } = "";
        public string FileName { get; set; } = "";
        public long FileSize { get; set; }
        public string FileExtend { get; set; } = "";
        public string BasePath { get; set; } = "";
        public string SavePath { get; set; } = "";
        public long CreatedBy { get; set; }
        public string CreatedByName { get; set; } = "";
        public DateTime CreatedOn { get; set; } = DateTime.Now;
        public string Url
        {
            get { return ConfigurationUtils.GetSection("Authority") + SavePath; }
        }
    }
}
